<template>
  <div id="app">
    <router-view />
    <theme-picker />
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";

export default {
  name: "App",
  components: { ThemePicker },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  },
  created() {
    console.log('env', process.env.VUE_APP_TYPE)
  }
};
</script>
<style scoped>
#app .theme-picker {
  display: none;
}
</style>
<style>
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
}
.avatar {
  width: 80px;
  height: 80px;
  display: block;
}
@media print {
  #app .sidebar-container{display: none!important;}
  .main-container{margin-left: 0!important;}
  .main-container>div{display: none;}
  .wrap-table{padding: 0!important;width: 100%!important;min-width: auto!important;}
  .wrap-table .tips{display: none!important;}
  .wrap-table .break{height: 0!important;}
}
</style>
